package linkedGraph;

/**
 * 边(弧)结点
 */
public class Arc {
    int index; // 索引
    int weight;// 权值
    Arc next;

    public Arc(int index, int weight, Arc next) {
        this.index = index;
        this.weight = weight;
        this.next = next;
    }

    public Arc(int index, Arc next) {
        this.index = index;
        this.next = next;
        this.weight = 0;
    }
}
